import React, { Component } from 'react'
import { connect } from 'react-redux'
import 'simditor/styles/simditor.css'

@connect( // 功能同 UTIL/createContainer
  ({ userData }) => ({ userData }),
  require('ACTION/user').default
)
export default class Test extends Component {
  constructor(props) {
    super(props)
    this.state = {}
  }
  render () {
    // console.log(this.props.userData)
    // 非实体组件需显式返回 null
    return <div>
      <h4>Test</h4>
      <div className="simditor">
        <div className="simditor-body" dangerouslySetInnerHTML={{__html: this.props.userData}}></div>
      </div>
    </div>
  }
}
